package com.example.demo.service.impl;

import com.example.demo.dao.CourseDao;
import com.example.demo.dao.StudentDao;
import com.example.demo.domain.Course;
import com.example.demo.domain.Student;
import com.example.demo.service.CourseService;
import com.example.demo.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseServiceImpl implements CourseService {

    @Autowired
    private CourseDao courseDao;

    @Override
    public List<Course> getAll() {
        return courseDao.getAll();
    }
    @Override
    public Course getById(String cid){
        return courseDao.getById(cid);
    }
}
